﻿using System.Text.Json.Serialization;

namespace Model.Result.Front
{
    /// <summary>
    /// 客户信息返回模型
    /// </summary>
    public class RM_Customer
    {
        /// <summary>
        /// token，用于后续请求
        /// </summary>
        public string Token { get; set; }

        /// <summary>
        /// 客户信息
        /// </summary>
        [JsonIgnore]
        public TCustomerinfo User { get; set; }

        /// <summary>
        /// 过期时间
        /// </summary>
        public DateTime ExpireAt { get; set; }

        /// <summary>
        /// 是否需要补充登录
        /// </summary>

        public bool IsNeedLogin { get; set; }

        /// <summary>
        /// 是否需要绑定微信
        /// </summary>
        public bool IsNeedBind { get; set; }

        /// <summary>
        /// 该账号已绑定微信，是否需要解绑
        /// </summary>
        public bool HasUnionId { get; set; }
    }

    public class RM_Customerinfo
    {
        /// <summary>
        /// 会员ID
        /// </summary>
        public int Id { get; set; }

        /// <summary>
        /// 会员头像
        /// </summary>
        public string Avatar { get; set; }

        /// <summary>
        /// 会员昵称
        /// </summary>
        public string NickName { get; set; }

        /// <summary>
        /// 联系电话
        /// </summary>
        public string Phone { get; set; }

        /// <summary>
        /// 邮箱
        /// </summary>
        public string Email { get; set; }

        /// <summary>
        /// 生日
        /// </summary>
        public DateTime? Birthday { get; set; }

        /// <summary>
        /// 性别
        /// </summary>
        public Enum_Sex? Sex { get; set; }

        public DateTime CreateTime { get; set; }
    }
}